#ifndef WORLDSERVERINFO_H
#define WORLDSERVERINFO_H

#include "../../Frame/Config.h"
#include "../../Frame/Common.h"
#include "GameServerInfo.h"
#include <string>
#include <map>

using namespace std;

class WorldServerInfo
{
	public:
		WorldServerInfo();
		~WorldServerInfo();

		void Init();

		int m_id; 							// WorldServer ID
		int m_count; 						// 在线玩家人数
		string m_name; 						// WorldServer名称
		string m_ip; 						// WorldServer IP
		int m_port; 						// WorldServer PORT
		eServerState m_State;

		map<int, GameServerInfo> m_GameServerInfo_map; 					// Game服务器数据

		bool AddGameServerInfo(const GameServerInfo& _Info);

        GameServerInfo* GetLoginGameServer();

	protected:
	private:
};

#endif // WORLDSERVERINFO_H
